package com.jyw.business.ast.domain.vo.web;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jyw.common.annotation.Conversion;
import com.jyw.common.annotation.Excel;
import com.jyw.common.enums.ConversionType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.FieldNameConstants;

import java.util.Date;

@ApiModel("资产详情-资产借用列表")
@Data
@FieldNameConstants
public class AstBorrowVo {

    /** 主键 */
    @ApiModelProperty("主键")
    private Long id;

    /** 借出科室 */
    @ApiModelProperty("借出科室")
    @Conversion(value = ConversionType.DEPT,name = Fields.outDeptName)
    private Long outDept;

    @ApiModelProperty("借出科室名称")
    private String outDeptName;

    /** 借入科室 */
    @ApiModelProperty("借入科室")
    @Conversion(value = ConversionType.DEPT,name = Fields.inDeptName)
    private Long inDept;

    @ApiModelProperty("借入科室名称")
    private String inDeptName;

    /** 预计归还日期 */
    @ApiModelProperty("预计归还日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date estimateReturnDate;

    /** 借用原因 */
    @ApiModelProperty("借用原因")
    private String reason;

    /** 借用状态(1:待审核,2:驳回,3:待归还,4:已归还) */
    @ApiModelProperty("借用状态(1:待审核,2:驳回,3:待归还,4:已归还)")
    private String state;

    /** 申请人 */
    @ApiModelProperty("申请人")
    @Conversion(value = ConversionType.USER,name = Fields.createUserName)
    private Long createUser;

    @ApiModelProperty("申请人名称")
    private String createUserName;

    /** 申请时间 */
    @ApiModelProperty("申请时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
